package org.zfes.snowier.cloud.zbss.loan.config.dic.service;

import org.zfes.snowier.cloud.zbss.loan.config.dic.model.DicSysconfig;
import org.zfes.snowier.core.data.DataSet;

import java.util.List;
import java.util.Map;
import java.util.Optional;

public interface IDicSysconfigService{

	 Optional<DicSysconfig> loadDicSysconfigById(Long id);
	
	 void createDicSysconfig(DicSysconfig dicSysconfig);
	
	 void updateDicSysconfig(DicSysconfig dicSysconfig);
	
	 DataSet loadDicSysconfigDataSet(Map<String, Object> params);

 	void setDicSysconfigStatus(Long id, Byte status);

	 Optional<String>  loadValueByConfCode(String code);

	List<DicSysconfig>  loadByCodeIn(List<String> params) ;

	Optional<DicSysconfig> loadDicSysconfigByConfCode(String confCode);
	
	/**
	 * sys_domian
	 * @return
	 */
	Optional<String>  doGetSysDomian();
	
	
	/**
	 * ali_accessKeyId
	 * @return
	 */
	Optional<String>  doGetAliAccessKeyId();
	/**
	 * ali_accessKeyId
	 * @return
	 */
	Optional<String>  doGetAliAccessKeySecret();
	/**
	 * ali_sms_sign_name
	 * @return
	 */
	Optional<String>  doGetAliSmsSignName();
	/**
	 * ali_sms_regist_tpl_code
	 * @return
	 */
	Optional<String>  doGetAliSmsRegistTplCode();
	
	
	/**
	 * wx_AppId
	 * @return
	 */
	 Optional<String>  doGetWxAppId();
	 /**
	  * wx_MchId
	  * @return
	  */
	 Optional<String>  doGetWxMchId();
	 /**
	  * wx_AppSecret
	  * @return
	  */
	 Optional<String>  doGetWxAppSecret();
	 /**
	  * wx_ApiSecret
	  * @return
	  */
	 Optional<String>  doGetWxApiSecret();
	
//-------------------wxpay---------------------------------------------
	/**
	 * 课程微信支付回调url wxpay_CourseOrder_notifyUrl
	 * @return
	 */
	 Optional<String>  doGetWxpayCourseOrderNotifyUrl();
	/**
	 * VIP购买微信支付回调url wxpay_VipOrder_notifyUrl
	 * @return
	 */	 
	 Optional<String>  doGetWxpayVipOrderNotifyUrl();
	 /**
	  * 专栏频道微信支付回调url wxpay_ChannelOrder_notifyUrl
	  * @return
	  */
	 Optional<String>  doGetWxpayChannelOrderNotifyUrl();
	 
//--------------------biz--------------------------------------------	 
	/**
	 * 课程推广--提成比例：biz_course_extern_percentageRate
	 * @return
	 */
	Optional<Double>  doGetBizServiceCourseExternPercentageRate();

	/**
	 * 课程购买可以观看次数：biz_course_order_view_count
	 * @return
	 */
	Optional<Integer> doGetBizServiceCourseOrderViewCount();
	

	/**
	 * 分享专栏获取的积分数 ：biz_channel_share_points
	 * @return
	 */
	Optional<Integer> doGetBizChannelSharePoints();
	
//--------------------------------------------------------------	
	/**
	 * 会员分享首页获取积分数： biz_member_index_share_points
	 * @return
	 */
	Optional<Integer> doGetBizMemberIndexSharePoints();
	/**
	 * 会员签到获取积分数： biz_member_sign_points
	 * @return
	 */
	Optional<Integer> doGetBizMemberSignPoints();
	
	/**
	 * 会员VIP购买价格：biz_member_vip_price
	 * @return
	 */
	Optional<Long> doGetBizMemberVipPrice();
	
	/**
	 * 订单支付超时关闭时间： biz_order_auto_close_time
	 * @return
	 */
	Optional<Integer> doGetBizOrderAutoCloseTime();
	
	
	 /**
	  * biz_course_wx_pay_body
	  * @return
	  */
	 Optional<String>  doGetBizCourseWxPayBody();
	 
	 /**
	  * biz_channel_wx_pay_body
	  * @return
	  */
	 Optional<String>  doGetBizChannelWxPayBody();
	 
	 /**
	  * biz_vip_wx_pay_body
	  * @return
	  */
	 Optional<String>  doGetBizVipWxPayBody();
	
		
}